<div id="main" class="">
    <div id="page-body">
        <!-- Find an office-->
        <div id="find-office">
            <span class="title museo bold white">Office Locator</span><br/>
            <div id="searchform-office">
                <form action="" id="search-form">
                    <input id="search" type="text" name="name" value="" onblur="setField(this)" onfocus="clearField(this)" placeholder="Enter suburb or postcode"></input>
                    <input type="hidden" name="keyword" id="keyword" value=""/>
                    <div id="results"></div>
                    <input type="image" name="search" value="Locate" src="<?php echo base_url(); ?>img/office-submit-button.png" />
                </form>
            </div>
            <?php echo anchor('offices/find', '> SHOW ALL OFFICES', 'class="cap bold showmore" '); ?>
        </div>

        <div class="content contact contactus" >

            <div id="contact-form" class="clearfix" >
                <h2 class="gogecko-orange">Contact Us</h2>
                <div id="contact-form-content">
                    <div id="form-error-msg"></div>
                    <?php if (!empty($usermessage)) { ?>
                        <div id="msgContainer">
                            <div id="msgdesc-<?php echo $usermessage[0] ?>"><?php if (isset($usermessage)) echo $usermessage[1]; ?></div>
                        </div>
                    <?php } ?>
                    <form id="contactus" class="cform contactform " method="post" action="" enctype="multipart/form-data" name="contactus-form">

                        <ol class="cf-ol">
                            <li><label for="name"><span>Your Name * </span></label><input type="text" onblur="setField(this)" onfocus="clearField(this)"  class="single fldrequired" placeholder="Enter Name" value="<?php echo!empty($post['name']) ? $post['name'] : '' ?>" name="name" id="name"><span class="reqtxt"></span></li>
                            <li><label for="emailAddress"><span>Email address *  </span></label><input type="text" onblur="setField(this)" onfocus="clearField(this)" class="single fldemail fldrequired" placeholder="Enter Email Address" value="<?php echo!empty($post['email']) ? $post['email'] : '' ?>" name="email" id="emailAddress"><span class="emailreqtxt"></span></li>
                            <li><label for="mobile"><span>Mobile number </span></label><input type="text" onblur="setField(this)" onfocus="clearField(this)" class="single" placeholder="Enter Mobile Number" value="<?php echo!empty($post['mobile']) ? $post['mobile'] : '' ?>" name="mobile"></li>

                            <li><label for="message"><span>Message* </span></label><textarea class="area fldrequired" id="message" name="message" rows="8" cols="30"><?php echo!empty($post['message']) ? $post['message'] : '' ?></textarea><span class="reqtxt"></span></li>

                            <li>
                                <img id="captcha" src="<?php echo site_url('captcha') ?>" alt="CAPTCHA Image" style="display: block"/>
                                <a href="#" style="color:#F47321;" onclick="document.getElementById('captcha').src = '<?php echo site_url('captcha') ?>?captcha=' + Math.random(); return false">[ Different Image ]</a>
                            <li>
                                <label for="message">Enter the code above here (Not Case Sensitive):</label>
                                <input id="captcha_code" name="captcha_code" type="text">
                            </li>

                        </ol>
                        <p class="cf-sb"><input type="submit" value="Submit" class="sendbutton" id="sendbutton2" name="sendbutton2"></p>
                    </form>
                </div>
            </div>
        </div>
        <!-- load suburbs list -->
        <script type="text/javascript">
            var $REX_AGENCIES = {"Albany Creek":695,"Aspley - Inner North":697,"Boondall\/Bracken Ridge - Inner North":699,"Bribie Island":701,"Browns Plains - Marsden":718,"Bundaberg":702,"Calamvale":23995,"Carindale - Wynnum":705,"Clayfield\/Nundah - Inner North":707,"Coorparoo - Morningside":711,"Gladstone":942,"Gold Coast - Nerang":722,"Grange":716,"Ipswich":714,"Mile End - Brighton":719,"Mount Gravatt":720,"National Support Office":988,"Newcastle":941,"Outer North":723,"Redlands":940,"Springfield Lakes":936,"Springwood \/ Shailer Park":725,"Toowoomba":939};</script>

        <div class="clearer"></div>
    </div>
</div>
